SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].FormasPagosUpdateCommand
(
	@ID numeric(10, 0),
	@FORMA_PAGO varchar(100),
	@PLAZO numeric(10, 0),
	@Original_ID numeric(10, 0),
	@Original_FORMA_PAGO varchar(100),
	@Original_PLAZO numeric(10, 0)
)
AS
	SET NOCOUNT OFF;
UPDATE [FORMAS_PAGOS] SET [ID] = @ID, [FORMA_PAGO] = @FORMA_PAGO, [PLAZO] = @PLAZO WHERE (([ID] = @Original_ID) AND ([FORMA_PAGO] = @Original_FORMA_PAGO) AND ([PLAZO] = @Original_PLAZO));
	
SELECT ID, FORMA_PAGO, PLAZO FROM FORMAS_PAGOS WHERE (ID = @ID)
GO
